﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EvoAlgLib
{
    public abstract class Func
    {
        private int arity;

        public Func(int arity) {
            this.arity = arity;
        }

        virtual public void setVars(Dictionary<String, Double> var) { }
        abstract public double getVal(double[] args);

        virtual public void mutateVal(double pm)
        {}

        public int getArity() { return this.arity; }
    }
}
